-- GENERATED SPELL FOR [Engineer Feknut] --


function spell0_24227(pUnit, Event) --@Heavy Dynamite,n/a--
pUnit:FullCastSpellOnTarget(32191,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24227', 602, 1)
end

function Sorts_24227(pUnit, Event)
local choix_sorts_24227 = math.random(0, 0)
if choix_sorts_24227 == 0 then
pUnit:RegisterEvent('spell0_24227', 1, 1)
end
end

function mob24227_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24227', math.random(1500, 3000), 1)
end

function mob24227_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24227_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24227_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24227, 1, 'mob24227_Action')
RegisterUnitEvent(24227, 2, 'mob24227_Leave')
RegisterUnitEvent(24227, 3, 'mob24227_Kill')
RegisterUnitEvent(24227, 4, 'mob24227_Die')
